/*
 * File:                StandardAppOptions.cs
 * Authors:             Jonathan T. McClain
 * Company:             Sandia National Laboratories
 * Project:             MVC
 *
 * Copyright 2008, Sandia Corporation.  Under the terms of Contract
 * DE-AC04-94AL85000, there is a non-exclusive license for use of this work by
 * or on behalf of the U.S. Government. Export of this program may require a
 * license from the United States Government. See CopyrightHistory.txt for
 * complete details.
 *
 * Reviewers:
 * Review Date:
 * Review Comments:
 *
 * Revision History:
 *
 * $Log: StandardAppOptions.cs,v $
 * Revision 1.4  2008/05/08 20:56:55  jtmccl
 * Added file headers.
 *
 */

using Mono.GetOptions;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sandia.MVCShell
{
    /// <summary>
    /// The MVCShell application options,  passed in as command line arguments.
    /// </summary>
    public class StandardAppOptions : Options
    {
        /// <summary>
        /// The application title.
        /// </summary>
        private string applicationTitle = "MVC Shell";

        /// <summary>
        /// The title to display for the application.
        /// </summary>
        [Option("Change the application title", "changeTitle")]
        public string ApplicationTitle
        {
            get
            {
                return this.applicationTitle;
            }

            set
            {
                this.applicationTitle = value;
            }
        }

        /// <summary>
        /// Indicates whether or not to enable the logging view.
        /// </summary>
        private static bool enableLoggingView = false;

        /// <summary>
        /// Indicates whether or not to enable the logging view.
        /// </summary>
        [Option("Enable the logging view for debugging purposes.", "enableLoggingView")]
        public bool EnableLoggingView
        {
            get
            {
                return StandardAppOptions.enableLoggingView;
            }

            set
            {
                StandardAppOptions.enableLoggingView = value;
            }
        }
    }
}
